class AutosaveController < ApplicationController
  def list
    # @subjects = Subject.find(:all)
  end
  def show
    # @subject = Subject.find(params[:id])
  end
  def create
    # @subject = Subject.new(params[:subject])
    # if @subject.save
    #   render :partial => 'subject', :object => @subject
    # end
  end
  
  def cria_file
    time1 = Time.new
    xml_file = open(time1.strftime("%10.9f" % time1.to_f), 'w')
    
    File.open('DOMConfigurator.java', 'r') do |f1|  
      while line = f1.gets  
        xml_file.write line
      end  
    end 
    xml_file.close
  end
end